package com.loong.controller;

import com.loong.dto.OperateLogDTO;
import com.loong.result.PageBean;
import com.loong.result.Result;
import com.loong.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;

    @GetMapping("/page")
    public Result<PageBean> list(OperateLogDTO operateLogDTO) {
        return Result.success(operateLogService.list(operateLogDTO));
    }
}
